Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cli core checker #4687

Open
wants to merge 5 commits into
base: xeno/cli-warp-route-checker
Choose a base branch
from

Conversation

xeno097
Copy link
Contributor

@xeno097 xeno097 commented Oct 15, 2024

Description

This PR implements a new core check command to allow comparing local core contract configuration with the on chain deployment and detect mismatches.

Examples:

image

image

Drive-by changes

  • Defined the DEFAULT_CORE_DEPLOYMENT_CONFIG_PATH to remove repeated and hardcoded './configs/core-config.yaml' strings
  • Implemented the executeCoreRead function to reuse it in the core check command logic.
  • Added memorization to the EvmHookReader because reading on chain configuration for chains like arbitrum, ethereum or optimism was taking more than 10 minutes to complete due to repeated hook config retrieval

Related issues

Backward compatibility

  • Yes

Testing

  • Manual

Notes

Copy link

changeset-bot bot commented Oct 15, 2024

🦋 Changeset detected

Latest commit: 47af3b5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@hyperlane-xyz/utils Minor
@hyperlane-xyz/cli Minor
@hyperlane-xyz/sdk Minor
@hyperlane-xyz/core Patch
@hyperlane-xyz/infra Minor
@hyperlane-xyz/widgets Minor
@hyperlane-xyz/helloworld Minor
@hyperlane-xyz/ccip-server Minor
@hyperlane-xyz/github-proxy Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

…guration and on chain deployments. Adds memoization to the EvmHookReader to avoid repeating configuration derivation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

1 participant